package com.haida.translation_web.pojo.respone;

import lombok.Getter;

/**
 * @Author LHJ_Jack
 * @Description TODO
 * @Date 2021/05/27 星期四 14:55
 */
@Getter
public enum ResultCode {

    SUCCESS(200, "操作成功"),

    FAILED(1001, "响应失败"),

    VALIDATE_FAILED(1002, "参数校验失败"),

    ERROR(500, "未知错误");

    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
